<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
	public function category()
	{
		return $this->belongsTo(Category::class);
	}

    public function product_images()
    {
        return $this->hasMany(ProductImage::class);
	}

    public function product_photos()
    {
        return $this->hasMany(ProductPhoto::class);
	}

    public function product_auxiliaries()
    {
        return $this->hasOne(ProductAuxiliary::class);
	}
}
